package com.sms.plateform.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sms.plateform.common.page.PageDataLists;
import com.sms.plateform.common.page.PageProperty;
import com.sms.plateform.kernel.entity.RaskApply;
import com.sms.plateform.kernel.entity.UserInfo;
import com.sms.plateform.kernel.service.IRaskApplyService;

@Controller
public class RaskApplyController extends BaseController {
	@Autowired
	private IRaskApplyService raskApplyService;
	@RequestMapping("/raskapply_list")
	public String detilListUserInfoHandel(HttpServletRequest request,HttpServletResponse response,ModelMap model) {
		UserInfo userInfo=this.getUserInfo(request);
		PageProperty pp = new PageProperty();
		pp.setNpage(this.getUrlParam(request, "pageNo")); // 更新页码值
		pp.setNpagesize(this.getUrlParam(request, "pageSize")); // 更新页面查询数量值
		pp.putParamMap("gid",userInfo.getGid());
		PageDataLists<RaskApply> raskApplyPageLists= this.raskApplyService.getPageDateList(pp);
		model.put("pageDataLists", raskApplyPageLists);
		return "rask/raskapply_list";
	}
	
}
